﻿<%@ Page Title="" Language="C#" MasterPageFile="~/activityAdmin/AdmMasterPage.master"
    AutoEventWireup="true" CodeFile="Export01.aspx.cs" Inherits="activityAdmin_UC01_Export01" %>

<%@ Register Src="../usercontrol/DdlDatePicker.ascx" TagName="DdlDatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <fieldset class="fieldset">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td>
                    <uc1:DdlDatePicker ID="datePicker" runat="server" />
                    <asp:Button ID="btnSearch" runat="server" Text="搜尋資料" OnClick="btnSearch_Click" />
                    <asp:Button ID="btnExport" runat="server" Text="匯出Excel" OnClick="btnExport_Click" />
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnlExport" runat="server">
            <asp:Label ID="lblTitle" runat="server" Text="" Visible="false"></asp:Label>
            <asp:GridView ID="gvList" runat="server" BackColor="White" BorderColor="#DEDFDE"
                AutoGenerateColumns="false" BorderStyle="None" BorderWidth="1px" CellPadding="4"
                ForeColor="Black" GridLines="Vertical" Width="100%" CssClass="datagrid">
                <RowStyle BackColor="#F7F7DE" />
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>             
                    <asp:BoundField DataField="AnswerId" HeaderText="序號" />       
                    <asp:BoundField DataField="CreatedDate" HeaderText="報名日期" DataFormatString="{0:yyyy/MM/dd}" />       
                    <asp:BoundField DataField="Ans1_1" HeaderText="第一幕先生說" />
                    <asp:BoundField DataField="Ans1_2" HeaderText="第一幕太太說" />
                    <asp:BoundField DataField="Ans2_1" HeaderText="第二幕救生員說" />
                    <asp:BoundField DataField="Ans3_1" HeaderText="第三幕先生說" />
                    <asp:BoundField DataField="Ans4_1" HeaderText="第四幕醫生說" />
                    <asp:BoundField DataField="Name" HeaderText="姓名" />
                    <asp:BoundField DataField="Sex" HeaderText="性別" />
                    <asp:BoundField DataField="Age" HeaderText="年齡" />
                    <asp:BoundField DataField="Phone" HeaderText="連絡電話/手機" />
                    <asp:BoundField DataField="Email" HeaderText="電子信箱" />
                    <asp:BoundField DataField="Address" HeaderText="聯絡地址" />
                    <asp:BoundField DataField="GetStr_Option1_1" HeaderText="晨間勃起對男性健康的意義" />
                    <asp:BoundField DataField="GetStr_Option1_2" HeaderText="勃起功能障礙與心血管疾病的關係" />
                    <asp:BoundField DataField="GetStr_Option1_3" HeaderText="勃起功能障礙與慢性病的關係" />
                </Columns>
            </asp:GridView>
        </asp:Panel>
    </fieldset>
</asp:Content>
